import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import ErrorPlugin from './utils/errorPlugin'

// css
// import '@/assets/reset.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css/normalize.css'
// A modern alternative to CSS resets
import '@/styles/index.scss' // global css

import echarts from 'echarts'

if (process.env.NODE_ENV !== 'production') require('./mock')

Vue.use(Element)
Vue.use(ErrorPlugin)

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
